package com.zerox.mapper;

import com.zerox.pojo.Supplier;
import com.zerox.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {

    List<Supplier> list(@Param("supContact") String supContact,@Param("pageNo") Integer pageNo,@Param("pageSize") Integer pageSize);

    int count(@Param("supContact") String supContact);
    int add(Supplier supplier);

    Supplier selectById(Integer id);
//
    int delete(Integer id);

    int updateById(Supplier supplier);

    int selectBysupCode(@Param("supCode") String supCode);

    int selectBySupName(@Param("supName") String supName);
}
